<!--
  描述：员工安全日志表table页
  @author tanghongjun
  @since 2020-06-20 14:17:03
-->
<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:th="http://www.thymeleaf.org">

<!--表格id与lay-filter属性一致，统一定义为zmn-table-->
<table class="layui-hide" id="zmn-table" lay-filter="zmn-table" th:fragment="table">
    <thead>
    <tr>
        <!--规定复选框列置于第1列，居中显示-->
        <th lay-data="{field:'logId',type:'checkbox', width:50, unresize:true, align:'center', fixed:'left'}"></th>
        <th lay-data="{title:'序号', width:70, align:'center', templet: function (d) {
                　　　　return d.LAY_TABLE_INDEX + 1
                }}">序号</th>
        <th lay-data="{field:'logId', unresize:true, align:'center'}">主键id</th>
        <th lay-data="{field:'logType', unresize:true, align:'center'}">操作类型：</th>
        <th lay-data="{field:'opertorIp', unresize:true, align:'center'}">操作人IP</th>
        <th lay-data="{field:'location', unresize:true, align:'center'}">操作人位置</th>
        <th lay-data="{field:'createTime', unresize:true, align:'center'}">操作时间</th>
    </tr>
    </thead>
    <tbody>
    <tr th:each="item:${items}">
        <td></td>
        <td></td>
        <td th:text="${item.logId}">logId</td>
        <td th:text="${item.logType == null ? '':T(com.zmn.mcc.common.dictionary.StaffLogDict).getSecurityLogName(item.logType)}">logType</td>
        <td th:text="${item.opertorIp} + '&nbsp;/&nbsp;' + ${item.creater}">opertorIp</td>
        <td th:text="${item.location}">location</td>
        <td th:text="${T(com.zmn.common.utils.date.DateUtil).toString(item.createTime, 'yyyy-MM-dd HH:mm:ss')}">createTime</td>
    </tr>
    </tbody>
</table>
